package com.ruoyi.cost.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cost.mapper.CustomFileItemMapper;
import com.ruoyi.cost.domain.CustomFileItem;
import com.ruoyi.cost.service.ICustomFileItemService;

/**
 * 自定义档案项Service业务层处理
 * 
 * @author 王志旸
 * @date 2024-07-09
 */
@Service
public class CustomFileItemServiceImpl  extends ServiceImpl<CustomFileItemMapper,CustomFileItem> implements ICustomFileItemService



{
    @Autowired
    private CustomFileItemMapper customFileItemMapper;

    /**
     * 查询自定义档案项
     * 
     * @param id 自定义档案项主键
     * @return 自定义档案项
     */
    @Override
    public CustomFileItem selectCustomFileItemById(String id)
    {
        return customFileItemMapper.selectCustomFileItemById(id);
    }

    /**
     * 查询自定义档案项列表
     * 
     * @param customFileItem 自定义档案项
     * @return 自定义档案项
     */
    @Override
    public List<CustomFileItem> selectCustomFileItemList(CustomFileItem customFileItem)
    {
        return customFileItemMapper.selectCustomFileItemList(customFileItem);
    }

    /**
     * 新增自定义档案项
     * 
     * @param customFileItem 自定义档案项
     * @return 结果
     */
    @Override
    public int insertCustomFileItem(CustomFileItem customFileItem)
    {
        return customFileItemMapper.insertCustomFileItem(customFileItem);
    }

    /**
     * 修改自定义档案项
     * 
     * @param customFileItem 自定义档案项
     * @return 结果
     */
    @Override
    public int updateCustomFileItem(CustomFileItem customFileItem)
    {
        return customFileItemMapper.updateCustomFileItem(customFileItem);
    }

    /**
     * 批量删除自定义档案项
     * 
     * @param ids 需要删除的自定义档案项主键
     * @return 结果
     */
    @Override
    public int deleteCustomFileItemByIds(String[] ids)
    {
        return customFileItemMapper.deleteCustomFileItemByIds(ids);
    }

    /**
     * 删除自定义档案项信息
     * 
     * @param id 自定义档案项主键
     * @return 结果
     */
    @Override
    public int deleteCustomFileItemById(String id)
    {
        return customFileItemMapper.deleteCustomFileItemById(id);
    }
}
